// config/index.js
// 运行时,读取不到这个值,报错Uncaught ReferenceError: process is not defined,如何解决
// 构建时,输出的也是const env = process.env.ENV;
const env = process.env.ENV;
const Config = {
  dev: {
    baseUrl: 'https://www.dev.com'
  },
  test: {
    baseUrl: 'https://www.test.com'
  },
  prod: {
    baseUrl: 'https://www.prod.com'
  }
};
console.log('config-env', env);
const envConfig = Config[env || 'dev'];

module.exports = envConfig;
